import request from '@/utils/request'

// 创建快递服务-快递地址
export function createDeliveryAddress(data) {
  return request({
    url: '/ipark/delivery-address/create',
    method: 'post',
    data: data
  })
}

// 更新快递服务-快递地址
export function updateDeliveryAddress(data) {
  return request({
    url: '/ipark/delivery-address/update',
    method: 'put',
    data: data
  })
}

// 删除快递服务-快递地址
export function deleteDeliveryAddress(id) {
  return request({
    url: '/ipark/delivery-address/delete?id=' + id,
    method: 'delete'
  })
}

// 获得快递服务-快递地址
export function getDeliveryAddress(id) {
  return request({
    url: '/ipark/delivery-address/get?id=' + id,
    method: 'get'
  })
}

// 获得快递服务-快递地址分页
export function getDeliveryAddressPage(params) {
  return request({
    url: '/ipark/delivery-address/page',
    method: 'get',
    params
  })
}
// 导出快递服务-快递地址 Excel
export function exportDeliveryAddressExcel(params) {
  return request({
    url: '/ipark/delivery-address/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}